# Contributor: Milan P. Stanić <mps@arvanta.net>
# Maintainer: Milan P. Stanić <mps@arvanta.net>
pkgname=ssdfs-tools
pkgver=4.09
pkgrel=0
pkgdesc="SSDFS flash-friendly file system tools"
url="https://github.com/dubeyko/ssdfs-tools"
arch="all"
license="BSD-3-Clause-Clear"
makedepends="automake autoconf libtool linux-headers libblkid util-linux-dev zlib-dev"
subpackages="$pkgname-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/dubeyko/ssdfs-tools/archive/refs/tags/v$pkgver.tar.gz"
#builddir="$srcdir/"

prepare() {
	default_prepare
	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
8162662a467113bd1058a28457b569fca606ab4f2dc7fb1dd46ca81550900356a145717df45f59cb9f4ff1f0fd94d0844f0aa9fadde8d98eb9ad232ed7541ac7  ssdfs-tools-4.09.tar.gz
"
